import React from 'react'
import { useState } from 'react'
import Father from './components/Father'
// 2. 引入context对象
import context from './context'
export default function App() {
    function getData(id){
        console.log('App id: ', id)
    }
    return (
        <context.Provider value={{name:'atguigu', age:18, getData}}>
            <h3>context</h3>
            <Father/>
        </context.Provider>
    )
}
